package grape.house.rest.client.impl.estatelicence;

import grape.house.rest.client.estatelicence.EstateLicenceClient;
import grape.house.rest.estatelicence.mvc.EstateLicenceInnerController;
import grape.house.rest.estatelicence.vo.EstateLicenceVo;
import grape.house.service.estatelicence.po.EstateLicence;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 楼盘许可客户端实现
 * Created by yangwei
 * Created at 2020/9/27 16:55
 */
@Component
public class EstateLicenceClientImpl implements EstateLicenceClient {

    @Autowired
    private EstateLicenceInnerController estateLicenceInnerController;


    @Override
    public EstateLicence getEstateLicenceById(String id) {
        return estateLicenceInnerController.getEstateLicenceById(id);
    }

    @Override
    public EstateLicenceVo getEstateLicenceVoById(String id) {
        return estateLicenceInnerController.getEstateLicenceVoById(id);
    }

    @Override
    public List<EstateLicence> getEstateLicenceByEstateId(String estateId) {
        return estateLicenceInnerController.getEstateLicenceByEstateId(estateId);
    }

    @Override
    public List<EstateLicence> getEstateLicenceByIdAndPropertyTypeId(String estateId, String propertyTypeId) {
        return estateLicenceInnerController.getEstateLicenceByIdAndPropertyTypeId(estateId,propertyTypeId);
    }
}
